<%@ page contentType="text/html;charset=UTF-8" %>
<%@ include file="/WEB-INF/views/include/taglib.jsp" %>
<html>
<head>
    <title>用户果蔬预定详情</title>
    <meta name="decorator" content="default"/>
    <script type="text/javascript">
        function page(n, s) {
            $("#pageNo").val(n);
            $("#pageSize").val(s);
            $("#searchForm").attr("action", "${ctx}/sys/orderProduct/reserveUserOrder");
            $("#searchForm").submit();
            return false;
        }
    </script>
</head>
<body>
<ul class="nav nav-tabs">
    <li class="active"><a href="${ctx}/sys/orderProduct/showGardenStuff/">返回查看订单</a></li>
</ul>
<br/>

<table id="contentTable" class="table table-striped table-bordered table-condensed">
    <thead>
    <tr>
        <th>订单号</th>
        <th>商品名称</th>
        <th>商品价格</th>
        <th>商品数量</th>
        <th>订单总额</th>
        <th>订单联系人</th>
        <th>联系电话</th>
        <th>支付方式</th>
        <th>支付状态</th>
        <th>支付时间</th>
    </tr>
    </thead>
    <tbody>

    <c:forEach items="${reserveTbOrderProductList}" var="tbOrderProduct">
        <tr>
            <td>${reserveTbOrder.orderNo}</td>
            <td>${tbOrderProduct.productName}</td>
            <td>${tbOrderProduct.price}</td>
            <td>${tbOrderProduct.quantity}</td>
            <td>${reserveTbOrder.orderAmount}</td>
            <td>${reserveTbOrder.contactName}</td>
            <td>${reserveTbOrder.contactMobile}</td>
            <td>
                <c:if test="${tbOrder.payId eq '1'}">
                    物业钱包
                </c:if>
                <c:if test="${tbOrder.payId eq '2'}">
                    麻雀钱包
                </c:if>
                <c:if test="${tbOrder.payId eq '3'}">
                    微信
                </c:if>
                <c:if test="${tbOrder.payId eq '5'}">
                    现金
                </c:if>
                <c:if test="${tbOrder.payId eq '6'}">
                    银行卡
                </c:if>
            </td>
            <td>
                <c:if test="${reserveTbOrder.payState=='0'}">
                    未付款
                </c:if>
                <c:if test="${reserveTbOrder.payState=='1'}">
                    已付款
                </c:if>
            </td>
            <td><fmt:formatDate value="${reserveTbOrder.payTime}" type="both"/></td>
        </tr>
    </c:forEach>
    </tbody>
</table>
<%--<div class="pagination">${reservePage}</div>--%>
<div align="right" class="form-actions">
    <input id="btnCancel" class="btn" type="button" value="返 回" onclick="history.go(-1)"/>
</div>
</body>
</html>
